package ooday03;

public class Dog extends Animal1 implements Swim{
    Dog(String name,int age,String color){
        super(name,age,color);

    }

    @Override
    public void swim() {
        System.out.println(color+"的"+name+"正在游泳...");
    }
    void look(){
        System.out.println(color+"的"+name+"正在看家");
    }
    void eat(){
        System.out.println(color+"的"+name+"正在吃骨头，今年"+age+"岁了");

    }
}
